<h1>事件绑定</h1>
<input type="button" value="事件的简单绑定" (click) = "printFun()"><br>
<input type="button" value="同事件" (click)="printFun()" (click)="showFun()">
<input type="button" value="不同事件" (click)="printFun()" (mousedown)="showFun()">
<h2>事件的传参</h2>
<input type="button" value="匿名参数" (click) = "argFun('字符串',123,true)"><br>
<!-- 要遵循ts语法，形参如果必传，实参要写完整 -->
<input type="button" value="匿名参数" (click) = "argFun('字符串')"><br>

<input type="button" value="组件变量" (click) = "argFun(info,arr)"><br>
<input type="button" value="表达式" (click) = "argFun(info+'哈哈',arr.concat([1,2,3]))"><br>

<h2>this指向</h2>
<input type="button" value="this指向" (click) = "thisFun(this)"><br>

<input type="button" value="$event指向" (click) = "thisFun($event)"><br>

<p>info : {{info}} </p>
<input type="button" value="行内表达式" (click)=" info = '新值' ">
